package com.tablefood.domain;

import java.sql.Timestamp;

/**
 * ShopOrderDetail entity. @author MyEclipse Persistence Tools
 */

public class ShopOrderDetail implements java.io.Serializable {

	// Fields

	private Long detailid;
	private ShopProduct shopProduct;
	private ShopOrder shopOrder;
	private Double price;
	private Integer productnum;
	private Timestamp createTime;
	private Timestamp updateTime;

	// Constructors

	/** default constructor */
	public ShopOrderDetail() {
		price = 0.0 ;
		productnum = 0 ;
		createTime =  new Timestamp(System.currentTimeMillis()); 
		updateTime =  new Timestamp(System.currentTimeMillis()); 
	}

	/** full constructor */
	public ShopOrderDetail(ShopProduct shopProduct, ShopOrder shopOrder,
			Double price, Integer productnum, Timestamp createTime,
			Timestamp updateTime) {
		this.shopProduct = shopProduct;
		this.shopOrder = shopOrder;
		this.price = price;
		this.productnum = productnum;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	// Property accessors

	public Long getDetailid() {
		return this.detailid;
	}

	public void setDetailid(Long detailid) {
		this.detailid = detailid;
	}

	public ShopProduct getShopProduct() {
		return this.shopProduct;
	}

	public void setShopProduct(ShopProduct shopProduct) {
		this.shopProduct = shopProduct;
	}

	public ShopOrder getShopOrder() {
		return this.shopOrder;
	}

	public void setShopOrder(ShopOrder shopOrder) {
		this.shopOrder = shopOrder;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getProductnum() {
		return this.productnum;
	}

	public void setProductnum(Integer productnum) {
		this.productnum = productnum;
	}

	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

}